/**
 * 
 */
package com.sci.web.action.eninfomanager;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.EnterpriseInfoManageDao;

/**
 * @author BaiFuyou
 * @date: Oct 31, 2011 9:01:57 PM
 * 
 * 对更改的信息审核不通过处理
 */
public class NotPassChengedInfoAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2679777189638306300L;
	@Resource
	private EnterpriseInfoManageDao enterpriseInfoManageDao;
	private int id;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(super.JSON);
		if (enterpriseInfoManageDao.notPassChangedInfo(id)) {
			super.outPrint("ok");
		} else {
			super.outPrint("fail");
		}
		return "json";
	}

}
